package com.itheima.lambdaTest111;

public class Test111 {
    public static void main(String[] args) {
        int a = 33;
        int b = 333;
//        Inter1 i = (x,y)->x +y;

        System.out.println(show((x, y) -> {
            return x + y;
        }, a, b));
    }

    private static int show(Inter1 inter1 ,int num1,int num2){
        int add = inter1.add(num1, num2);

        return add;
    }
}

interface Inter1{
    abstract int add(int a, int b);
}
